export default {
    template:`<h1>产品详情</h1>`,
    //进入路由
    beforeRouteEnter(to,from,next){
        console.log("进入产品详情的路由");
        console.log(this);//undefind 现在还不能访问到实例
        next();
    },
    //路由更新
    beforeRouteUpdate(to,from,next){
        console.log("路由更新的时候");
        console.log(this);
        next();
    },
    beforeRouteLeave(to,from,next){
        console.log("当前路由",from);
        console.log("前往路由",to);
        next();
    }
}